package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easy.common.bean.SeckillOrder;

import java.util.List;

public interface ISeckillOrderService extends IService<SeckillOrder> {
    // SeckillOrder相关方法
    SeckillOrder getSeckillOrderById(int id);
    SeckillOrder getSeckillOrderByUserId(int userId);
    int addSeckillOrder(SeckillOrder seckillOrder);
    int updateSeckillOrder(SeckillOrder seckillOrder);
    int deleteSeckillOrder(Integer id);
    List<SeckillOrder> getAllSeckillOrder(SeckillOrder seckillOrder);
    IPage<SeckillOrder> getSeckillOrderPage(SeckillOrder seckillOrder, IPage<SeckillOrder> page);
}
